<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="card-header"><b>试卷相关</b></div>
<div class="card-content" th:if="${#lists.isEmpty(dataList)}">
    <div class="card-content-inner">
        <section class="no-data__wrap">
            <em>&nbsp;</em>
            <p>暂无相关搜索数据，小编正在整理中</p>
        </section>
    </div>
</div>
<div class="card-content" th:if="!${#lists.isEmpty(dataList)}">
    <div class="card-content-inner">
        <section class="mb5" th:if="!${#lists.isEmpty(dataList)}" th:each="exam : ${dataList}">
            <a href="javascript:void(0);" id="a-active-btn"
               th:attrappend="data-id=${exam['id']} ,data-record=${exam['examBuyStatus']['recordId']}">
                <div class="item-title">
                    <span class="wm-cm-title vam" th:text="${exam['name']}"></span>
                    <section class="wm-attr-wrap row">
                        <aside class="col-auto">
                    <span class="wm-txt-small c-blue">
                        <samp th:each="subject,index: ${exam['subjectList']}"
                              th:text="${index['index']} lt (${#lists.size(exam['subjectList'])}-1)?${subject['subjectName']}+'/': ${subject['subjectName']}"></samp>
                    </span>
                        </aside>
                        <aside class="col-auto pl5">
                            <span class="wm-txt-small" th:text="${exam['questionCount']}"></span>
                            <span class="wm-txt-small">道</span>
                        </aside>
                        <aside class="col-auto pl5">
                            <span class="wm-txt-small">总分</span>
                            <span class="wm-txt-small" th:text="${exam['score']}"></span>
                        </aside>
                    </section>
                    <section class="wm-attr-wrap pt5 row">
                        <aside class="col-66">
                            <span class="wm-txt-small" th:text="${exam['examNum']}+'人参与'">0</span>
                            <span class="wm-txt-small" th:text="'平均分'+${exam['average']}">0</span>
                            <span class="wm-txt-small" th:text="'年份'+${exam['year']}">0</span>
                        </aside>
                        <aside class="col-33 text-right">
                            <span class="button  button-round button-danger fs6 wm-price free-exam-box"
                                  th:if="!${exam['examBuyStatus']['buy']} and ${exam['examBuyStatus']['freeBuyBut']}"
                                  th:attrappend="data-pay-type=${exam['examBuyStatus']['payType']}">免费报名</span>
                            <span class="button  button-round button-danger fs6 wm-price buy-exam-box"
                                  th:if="${exam['examBuyStatus']['buyBut']}" data-type="EXAM" data-num="1">立即报名</span>
                            <span class="button  button-round button-danger fs6 wm-price go-to-exam"
                                  th:if="${exam['examBuyStatus']['buy']}==true">参加考试</span>
                        </aside>
                    </section>
                    <section class="wm-attr-wrap pt5 row">
                        <aside class="col-60">
                            <samp class="wm-price" th:if="${exam['examBuyStatus']['priceBut']}"
                                  th:text="'售价：￥'+${exam['price']}"></samp>
                            <samp th:if="${exam['examBuyStatus']['freePriceBut']}" class="wm-price-free"
                                  th:text="免费"></samp>
                        </aside>
                        <aside th:if="${exam['examBuyStatus']['memberPriceBut']}" class="col-40 text-right">
                            <samp class="wm-price" th:if="${exam['examBuyStatus']['memberPriceBut']}"
                                  th:text="'会员价：￥'+${exam['memberPrice']}"></samp>
                            <samp th:if="${exam['examBuyStatus']['memberFreePriceBut']}" class="wm-price-free"
                                  th:text="免费"></samp>
                        </aside>
                    </section>
                </div>
            </a>
        </section>
    </div>
</div>
<div class="card-footer" th:if="!${#lists.isEmpty(dataList)}" th:text="'共'+${#lists.size(dataList)}+'条结果'"></div>
</html>